package com.yjd.comm.system.model;

import org.hibernate.validator.constraints.NotEmpty;

import com.yjd.comm.base.model.Model;

/**
 * <b>description</b>：数据字典模型<br>
 * <b>time</b>：2014-11-08 14:31:38 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public class LinkageModel extends Model {

	/**
	 * @Fields serialVersionUID
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	private Integer linkage_id;
	/**
	 * 名称
	 */
	@NotEmpty(message="名称不能为空")
	private String name;
	/**
	 * 值
	 */
	private String value;

	private Integer ismore;
	/**
	 * 父节点id
	 */
	private Integer parentid;
	/**
	 * 排序
	 */
	private Integer pid;
	/**
	 * 编码，按照parentid归类
	 */
	@NotEmpty(message="编码不能为空")
	private String code;
	
	/**
	 * 是否选中，0：否，1：是
	 */
	private Integer is_checked;
	
	public LinkageModel() {
	}

	public LinkageModel(String name, String value) {
		this.name = name;
		this.value = value;
	}

	public Integer getLinkage_id() {
		return linkage_id;
	}

	public void setLinkage_id(Integer linkage_id) {
		this.linkage_id = linkage_id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public Integer getIsmore() {
		return ismore;
	}

	public void setIsmore(Integer ismore) {
		this.ismore = ismore;
	}

	public Integer getParentid() {
		return parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getIs_checked() {
		return is_checked;
	}

	public void setIs_checked(Integer is_checked) {
		this.is_checked = is_checked;
	}
	
}
